package org.annotation.t.componentScan.bean;

import org.springframework.stereotype.Component;

@Component(value = "user")
//@Service
//@Repository
//@Controller
//以上注解都可以实现bean注解配置
public class User {
    public void addUser(){
        System.out.println("添加user成功...");
    }
}
